<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
    <script src="js/util.js"></script>
</head>
<body>
    <div id="app">
        用户名:
        <input type="text" v-model="pojo.username"><br>
        地址:
        <input type="text" v-model="pojo.address"><br>
        <input type="button" @click="add()" value="添加">
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            pojo:{}
        },
        methods:{
            add(){
                axios.post("/order/add",this.pojo).then(res=>{
                    location.href='show.html';
                })
            }
        },
        created(){

        }
    })
</script>
</html>